Skip to content

Add async support via optional extra - #50

Draft
adarshdigievo wants to merge 4 commits into
masterfrom
adarshdigievo-async-support
Draft

adarshdigievo wants to merge 4 commits into
masterfrom
adarshdigievo-async-support

Conversation

@adarshdigievo

Copy link
Copy Markdown
Member

AI disclosure: changes made by Fable 5.2 extra and Copilot Fusion Max, via GitHub Copilot Desktop.

Adds async support through serpapi.AsyncClient, available with the optional serpapi[async] extra on Python 3.11+.

adarshdigievo and others added 4 commits November 16, 2026 00:47
Add serpapi.AsyncClient and AsyncSerpResults, backed by httpx2 through the optional serpapi[async] extra on Python 3.11+. The synchronous Client stays on requests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ubuntu-latest is now Ubuntu 26.04, where actions/setup-python has no Python 3.8 or 3.9. uv downloads its own builds of every version in the matrix.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Finish aclose() bookkeeping in a done callback, so a cancelled caller no longer leaves closed sessions referenced or an unretrieved task exception. Declare anyio in the test extra, since the async tests use its pytest plugin.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The AsyncClient method docstrings said stream is passed to the underlying HTTP request. The async transport discards it, as the user guide already states.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant